#import <Foundation/Foundation.h>

#import "../model/Comment.h"
#import "RequestConfig.h"
#ifndef CommentRequest_h
#define CommentRequest_h

@interface CommentRequest : NSObject

@property (nonatomic,assign) RequestConfig* config;
- (void)initReq:(RequestConfig*)config;
+ (id)defaultCommentRequest;
# pragma comment
- (void)getCommentsByID:(NSString*)contentID
                success:(nullable void (^)(NSArray<Comment*>* comments))success
                failure:(nullable void (^)(NSString* reason))failure;
- (void)deleteCommentsByID:(NSString*)commentID
                   success:(nullable void (^)(void))success
                   failure:(nullable void (^)(NSString* reason))failure;
- (void)postCommentsByID:(CommentReq*)commentReq
                 success:(nullable void (^)(void))success
                 failure:(nullable void (^)(NSString* reason))failure;


@end
#endif
